package com.tiancheng.trade.settlement.service.order.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tiancheng.trade.settlement.mapper.order.RefundMapper;
import com.tiancheng.trade.settlement.model.order.RefundOrdersDetail;
import com.tiancheng.trade.settlement.service.order.IRefundService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 订单信息
 */
@Service
public class RefundServiceImpl implements IRefundService {

    @Resource
    private RefundMapper refundMapper;

    @Override
    public List<RefundOrdersDetail> findByRefundFlowId(String refundFlowId) {
        return refundMapper.selectList(new QueryWrapper<RefundOrdersDetail>().eq("flow_id",refundFlowId));
    }
}
